﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

public class GlobalVariables
{
    private static String loginName = String.Empty;
    public static String loginId
    {
        get
        {
            if (loginName.Equals(String.Empty))
                loginName = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
            return loginName;
        }
    }

    public static String DateFormat
    {
        get
        {
            return "yyyy-MM-dd";
        }
    }

    public static String Today
    {
        get
        {
            return DateTime.Now.ToString(GlobalVariables.DateFormat);
        }
    }

    public static String DefaultFromDate
    {
        get
        {
            return (new DateTime(2050, 12, 31).ToString(GlobalVariables.DateFormat));
        }
    }

    public static String DefaultToDate
    {
        get
        {
            return (new DateTime(2000, 1, 1).ToString(GlobalVariables.DateFormat));
        }
    }

}
